#!/usr/local/bin/lua

local t = {{a = 5}, {a = 3},{a = 1}}

table.sort(t, function(a,b)
	return a.a < b.a
end
)


function modify()
    t[1]['a'] = 4
end

function printf()
    for k, v in pairs(t) do
        for k2,v2 in pairs(v)do
            print(k2,v2)
        end
    end
end
